/*
  Jeffrey Minton
  video.h
  Video class: create a thread to get video from the camera
*/

#ifndef VIDEO_H
#define VIDEO_H

#include <QThread>
#include "cxcore.h"
#include "cv.h"
#include "highgui.h"
#include "camera.h"

class Video : public QThread
{
public:
    Video();
    virtual void run();//run the thread
    void connectCam(Camera*);//give the thread a camera

private:
    Camera *cam;//camera to use
    IplImage* img;
};

#endif // VIDEO_H
